<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>合同信息管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/bishe/bishePack/">到期合同列表</a></li>
	</ul>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>合同标题</th>
				<th>合同内容</th>
				<th>合同签订时间</th>
				<th>合同类型</th>
				<th>起租时间</th>
				<th>到租时间</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="bishePack">
			<tr>
				<td>
					<a href="${ctx}/bishe/bishePack/form?id=${bishePack.id}">
							${bishePack.packTitle}
					</a>
				</td>
				<td>
					${bishePack.packContent}
				</td>
				<td>
					<fmt:formatDate value="${bishePack.packDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<td>
					${fns:getDictLabel(bishePack.orderType, 'order_type', '')}
				</td>
				<td>
					<fmt:formatDate value="${bishePack.rentStartDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<td>
					<fmt:formatDate value="${bishePack.rentEndDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>